package com.bruan.d3_parameter;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class CollectionsTest {
    public static void main(String[] args) {
        List<String> names = new ArrayList<>();
        Collections.addAll(names,"张三","李四","张麻子","张筑");
        System.out.println(names);

        Collections.shuffle(names);
        System.out.println(names);

        Collections.sort(names);
        System.out.println(names);


    }
}
